//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package tirt.test.general;
import tirt.admission.RateBasedAdmissionControl;
import tirt.schedulers.WeightedRoundRobinScheduler;
import tirt.sinks.SimpleSink;
import tirt.forks.DummyModule;
import tirt.channels.BitrateChannel;
import tirt.schedulers.FcfsScheduler;
import tirt.forks.RandomFork;
import tirt.profilers.LeakyBucketProfiler;
import tirt.admission.PriorityControlAdmissionControl;
import tirt.admission.SrcAdmissionControl;
import tirt.generators.PoissonGenerator;
import tirt.generators.OnOffGenerator;
import tirt.generators.MarkovModulatedPoissonProcessGenerator;
import tirt.generators.ExponentialGenerator;


//
// TODO documentation
//
// @author Jagger
//
network general1
{
    @display("bgb=693,596");
    submodules:
        exp: ExponentialGenerator {
            @display("p=41,35");
        }
        mmpp: MarkovModulatedPoissonProcessGenerator {
            @display("p=41,95");
        }
        onoff: OnOffGenerator {
            @display("p=41,153");
        }
        poisson: PoissonGenerator {
            @display("p=41,214");
        }
        exp1: ExponentialGenerator {
            @display("p=41,308");
        }
        mmpp1: MarkovModulatedPoissonProcessGenerator {
            @display("p=41,370");
        }
        onoff1: OnOffGenerator {
            @display("p=41,436");
        }
        poisson1: PoissonGenerator {
            @display("p=41,499");
        }
        priority: PriorityControlAdmissionControl {
            @display("p=221,408");
        }
        leakyBucket: LeakyBucketProfiler {
            @display("p=315,260");
        }
        simpleSink: SimpleSink {
            @display("p=635,260");
        }
        wrr: WeightedRoundRobinScheduler {
            @display("p=475,260");
        }
        rate: RateBasedAdmissionControl {
            @display("p=212,133");
        }
    connections:
        exp1.out --> BitrateChannel --> priority.in++;
        mmpp1.out --> BitrateChannel --> priority.in++;
        onoff1.out --> BitrateChannel --> priority.in++;
        poisson1.out --> BitrateChannel --> priority.in++;
        priority.out --> BitrateChannel --> leakyBucket.in++;
        wrr.out --> BitrateChannel --> simpleSink.in++;
        leakyBucket.out --> BitrateChannel --> wrr.in++;
        rate.out --> BitrateChannel --> leakyBucket.in++;
        poisson.out --> BitrateChannel --> rate.in++;
        onoff.out --> BitrateChannel --> rate.in++;
        mmpp.out --> BitrateChannel --> rate.in++;
        exp.out --> BitrateChannel --> rate.in++;
}

